<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<div id="submenu" class="span-5 border" style="height:450px;">
<table>
	<tr>
		<td>
		导航栏&gt;&gt;
		</td>
	</tr>
	<c:forEach items="${userSession.selectedMenuItem.subMenuItems}" var="subMenuItem">
	<tr>
		<td>
		<c:choose>
		<c:when test="${subMenuItem.id eq userSession.selectedSubMenuItem.id}">
			<div class="submenu-item-selected"
				id="<c:out value="${subMenuItem.id}"/>"
				onclick="window.location.href='<%=request.getContextPath()%>/menu/action1.do?id=<c:out value="${subMenuItem.id}"/>'">
				<c:out value="${subMenuItem.name}"/>
			</div>
		</c:when>
		<c:otherwise>
			<div class="submenu-item"
				id="<c:out value="${subMenuItem.id}"/>"
				onclick="window.location.href='<%=request.getContextPath()%>/menu/action1.do?id=<c:out value="${subMenuItem.id}"/>'">
				<c:out value="${subMenuItem.name}"/>
			</div>
		</c:otherwise>
		</c:choose>	
		</td>
	</tr>
	</c:forEach>
</table>	
</div>